
import java.util.Random;


public class Tabela {
    public static void main(String[] args){
        Biblioteka b = new Biblioteka();
        int id=0;
        new Thread(new Pisarz(b)).start();
        while(true){
            new Thread(new Czytelnik(b, id)).start();
            id++;
            try{
                Thread.sleep(new Random().nextInt(500));
            }catch(InterruptedException e){
                e.printStackTrace();
            }
        }
    }
}
